

#define complier
ARM_COMPILER = c:/gcc/bin/arm-none-eabi-

# config version
PLATFORM=
APPTYPE=app.elf
VERSION=

# target
TARGET		:= $(strip $(PLATFORM))$(strip $(APPTYPE))$(strip $(VERSION))

# define build template, app / lib
TEMPLATE	:= app

# define configure, static / shared if lib
CONFIG		+= static

	
# external libraries
# LIBS		+= -lpthread

# defines
DEFINES		+= -D USE_FULL_LL_DRIVER \
               -D STM32H750xx \

# compile flags
CFLAGS      += -mcpu=cortex-m7 -mthumb -mfloat-abi=soft
CFLAGS      += -Wall
CFLAGS      += -g -gdwarf-2
CFLAGS      += -Ofast
CFLAGS      += -ffunction-sections -fdata-sections


LDS_IN      += ./rom_ram.c
LDS_OUT     += ./rom_ram.lds


# link flags
LDFLAGS     += -T $(LDS_OUT) -mcpu=cortex-m7 -mthumb
LDFLAGS     += -Wl,--gc-sections -Wl,-Map=$(TARGET).map




include ./Makefile.inc
include ./Makefile.template
